package com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 所有的工具工程
 * @author gxy
 *	2018年11月8日
 *	my-work
 * 	success when you begin
 */
@SpringBootApplication
@EnableTransactionManagement
@EnableCaching
public class MyWorkApplication extends SpringBootServletInitializer{
	
	@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return  builder.sources(MyWorkApplication.class);
    }

	public static void main(String[] args) {
		SpringApplication.run(MyWorkApplication.class, args);
	}
}
